﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SystemDirectory.DAO;
using System.Data;
using SystemDirectory.Common;
using SystemDirectory.Entity;

namespace SystemDirectory.Biz
{
    public class BOMinor
    {
        public DataTable Get(bool ShowInactive, Utilities.SearchType IsSearch)
        {
            DAOMinor daoMinor = new DAOMinor();
            DataTable dtResult = daoMinor.Get(ShowInactive,IsSearch);
            return dtResult;

        }
        public bool AddMinor(Minor MinorIn)
        {
            DAOMinor daoMinor = new DAOMinor();
            return daoMinor.AddMinor(MinorIn);

        }
        public bool UpdateMinor(Minor minorIn)
        {
            DAOMinor daoMinor = new DAOMinor();
            return daoMinor.UpDateMinor(minorIn);
        }
        public Minor GetById(int id)
        {
            DAOMinor daoMinor = new DAOMinor();
            return daoMinor.GetById(id);
        }
    }
}